package com.imooc.miaosha.form;

import com.imooc.miaosha.validator.annotation.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 模块描述: <br>
 * ()
 *
 * @Author: Mr. xyb
 * @Date: 2019/4/16 23:25
 * @since: 1.8.0
 * @version: 1.0.0
 */
@Data
public class LoginForm {

    @NotNull
    @IsMobile
    private String mobile;

    @NotNull
    @Length(max = 32)
    private String password;

}
